<?php  echo $_SERVER['SCRIPT_NAME']."<BR>"; // prints the file name ?>  
<?php
	# This is a comment!
	// This is also a comment!
	
	/* 
		This is a set of comments.
		This block of multi-line comments can span as many lines as needed.
		Be sure you open and close the block with the forward-shash and asterick.
		
	*/

	$value = 2000.1212;
	$name = "Brad Miller";
	$x = 10; $y = 22; $z = $x + $y;
	$result = ((10 + 22) * 4) / ($y + 1);
	
	$i=0;
	$i++;
	$i--;
	$i = $i + 1;
	$i = $i -1;
	
	$str = "Hello"." "."World!";
	$fname = "Brad";
	$lname = "Miller"; 
	$name = $fname." ".$lname;
	//echo $str;
	//echo $name;
	
	if ($x > 5) {
		print("The value is big enough!<BR>because $x > 5");
	}
	
	// Valid constant names 
	define( "UPPER_LIMIT",1000 ); 
	define ( "MIN" ,3 ); 
	define ( "SERVERNAME" , "www.myserver.dom" );
	
	// echo "<br>UPPER_LIMIT has a constant value of: ";
	// echo UPPER_LIMIT;
	
	/*
		$a + $b
		$a - $b
		$a * $b
		$a / $b
		$a % $b // Modulus is the remainder of $a divided by $b. 
	
	*/

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../include/main.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="100%"  border="0" cellspacing="6" cellpadding="6">
  <tr>
    <td><div align="right" class="txt24bb_white">Basic Language Syntax </div></td>
  </tr>
</table>
<p><br>
</p>
<table width="500" border="0" align="center" cellpadding="1" cellspacing="1" class="tbl_border">
  <tr>
    <td><table width="100%"  border="0" cellpadding="0" cellspacing="0" class="tbl_gray_wborder">
        <tr>
          <td class="txt14b_black"><div align="center">
            <p align="left"><span class="txt14b_red">&lt;?php</span><br>
              <br>
              <span class="txt14b_orange"># This is a comment!<br>
  // This is also a comment!<br>
  <br>
  /* <br>
  This is a set of comments.<br>
  This block of multi-line comments can span as many lines as needed.<br>
  Be sure you open and close the block with the forward-shash and asterick.<br>
  <br>
  */ </span></p>
            <p align="left"> $value = <span class="txt14_red">2000.1212</span>;<br>
  $name = <span class="txt14_red">&quot;Brad Miller&quot;</span>;<br>
  $x = <span class="txt14_red">10</span>; $y = <span class="txt14_red">22</span>; $z = $x + $y;</p>
            <p align="left">$result = ((10 + 22) * 4) / (y +1);<br>
              <br>
              $i++;<br>
              $i--;</p>
            <p align="left">$i = $i + 1;<br>
              $i = $i -1; </p>
            <p align="left">$str = &quot;Hello&quot;.&quot; &quot;.&quot;World!&quot;;<br>
              $fname = &quot;Brad&quot;;<br>
              $lname = &quot;Miller&quot;; <br>
              $name = $fname.&quot; &quot;.$lname;</p>
            <p align="left"> if ($x &gt; <span class="txt14_red">5</span>) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;print(<span class="txt14_red">&quot;The value is big enough!&lt;BR&gt;because $x &gt; 5&quot;</span>);<br>
}</p>
            <p align="left">&nbsp;</p>
            <p align="left"> <br>
              <span class="txt14b_orange">// Valid constant names </span><br>
define ( "UPPER_LIMIT" ,&nbsp; &nbsp;1000 ); <br>
define ( "MIN" ,&nbsp; &nbsp;3 ); <br>
define ( "SERVERNAME" , "www.myserver.dom" ) <br>
                <br>
                <span class="txt14b_red">?&gt;</span></p>
          </div></td>
        </tr>
    </table></td>
  </tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><br>
</p>
<p>&nbsp;</p>

</body>
</html>
